package patterns;

import interfaces.HowToCook;

/**
 * Created by pc on 2015/2/7.
 */
public class CommandDemo {

    public void cooking(HowToCook cm, String food) {
        cm.cookMethod(food);
    }

    public static void main(String[] args) {
        CommandDemo cd = new CommandDemo();
        cd.cooking(new CookKao(), "鸡蛋");
    }

}
